package com.xintoucloud.springbootmybatisplus.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xintoucloud.springbootmybatisplus.entity.Student;
import com.xintoucloud.springbootmybatisplus.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class StudentService extends ServiceImpl<StudentMapper,Student> {
    /*@Autowired StudentMapper studentMapper;

    public List<Student> listStudent(){
        return studentMapper.selectList(null);
    }*/

    public List<Student> listByCondition(){
        return this.getBaseMapper().queryByConditionxx("男","新乡%");
    }
}
